<?php

import('com.yamvc.event.Event');

class PostEvent extends Event {
	const SHOW_POST="showPostEvent";
	const ADD_COMMENT="addCommentEvent";
	private $_postId;
	private $_page=1;
	public function getPostId(){
		return $this->_postId;
	}
	public function getPage(){
		return $this->_page;
	}
	public function __construct($type,$params){
		parent::__construct($type);
		if (isset($params[0])){
			$this->_postId = (int)$params[0];
		}else{
			$this->_postId=1;
		}
		if (isset($params[1])){
			$this->_page = (int)$params[1];
		}else{
			$this->_page=1;
		}
		
	}
}

?>